package com.xja.food.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xja.food.entity.Type;
import com.xja.food.mapper.TypeMapper;
import com.xja.food.service.TypeService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 刘振升
 * @version 1.0
 * @date 2022/4/14 19:33
 * @description todo
 */
@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> typeList() {
        QueryWrapper<Type> qw = new QueryWrapper<>();
        return typeMapper.selectList(qw);
    }
}
